package com.andy.buyu.server.entity;

import com.andy.buyu.server.utils.ListTuple;

public class ConfSpecialBullet extends BaseEntity{

	private static final long serialVersionUID = 1L;

	public ConfSpecialBullet() {
	}
	
	public ConfSpecialBullet(Long id) {
		super(id);
	}
	
	private Integer bulType;
	
	private Integer limitTime;
	
	private String bulNum;
	
	public static String table() {
		return "conf_special_bullet";
	}

	public Integer getBulType() {
		return bulType;
	}

	public void setBulType(Integer bulType) {
		this.bulType = bulType;
	}

	public Integer getLimitTime() {
		return limitTime;
	}

	public void setLimitTime(Integer limitTime) {
		this.limitTime = limitTime;
	}

	public String getBulNum() {
		return bulNum;
	}

	public void setBulNum(String bulNum) {
		this.bulNum = bulNum;
	}

	private ListTuple listTuple;
	public ListTuple listTuple(){
		if(listTuple == null){
			listTuple = new ListTuple(bulNum);
		}
		return listTuple;
	}
	
	/**
	 * 掉落
	 * @return -1,没有掉落
	 */
	public int tryNum(){
		return listTuple().selTuple().getFir();
	}
	
}
